﻿<UserControl x:Class="KineticListViewTest.ListOfElements"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
       xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:KineticListView="clr-namespace:KineticListView;assembly=KineticListView" xmlns:KineticListViewTest="clr-namespace:KineticListViewTest" mc:Ignorable="d" >
    <UserControl.Resources>
        <KineticListViewTest:ListOfElementViewModel x:Key="vm" />
        <DataTemplate x:Key="Data">
                <StackPanel Focusable="false">
                    
                    <Label Content="{Binding Value}" FontWeight="Bold" FontSize="24" Foreground="Red">
                        <Label.Background>
                            <SolidColorBrush Color="White"/>
                        </Label.Background>
                    </Label>
                    <Label Content="{Binding IValue}" FontSize="48" FontFamily="Showcard Gothic"/>
                </StackPanel>
            </DataTemplate>
    </UserControl.Resources>
    <DockPanel Name="xContent" d:DataContext="{StaticResource ResourceKey=vm}" ScrollViewer.VerticalScrollBarVisibility="Hidden" >
        <DockPanel.Resources>
           
        
        </DockPanel.Resources>
        <KineticListView:KineticListView Margin="0" x:Name="listView1" ScrollViewer.VerticalScrollBarVisibility="Disabled"
                  SelectionChanged="listView1_SelectionChanged" 
                                 Direction="Vertical"
                  ItemsSource="{Binding Path=DataToShow}" ItemTemplate="{DynamicResource Data}" >

        </KineticListView:KineticListView>
    </DockPanel>
</UserControl>
